package com.lzc.tlmail.cart.tlmailcart.service;

import com.lzc.tlmail.cart.tlmailcart.vo.CartItemVo;
import com.lzc.tlmail.cart.tlmailcart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @author lzc
 * @create 2020-10-19 10:29
 */
public interface CartService {
    CartItemVo addCart(Integer skuNum, Long skuId) throws ExecutionException, InterruptedException;

    CartItemVo getCartItemBySkuId(Long skuId);

    CartVo getCart() throws ExecutionException, InterruptedException;

    public List<CartItemVo> getCartItems(String userKey);

    void clearCart(String key);

    void cartCheck(Integer checked, Long skuId);

    void cartNumChange(Integer count, Long skuId);

    void skuDel(Long skuId);

    List<CartItemVo> getCartItemsToOrder();
}
